// Tooltip.h
#ifndef TOOLTIP_H
#define TOOLTIP_H

#include "GUIElement.h"

class QGraphicsScene;

namespace IDS {
namespace IDEAS {
namespace OpenGLView {
namespace GUIElements {


class Tooltip : public GUIElement
{
private:
	QRectF rect;
	QString text;

    //virtual void hoverEnterEvent(QGraphicsSceneHoverEvent *event);
    //virtual void mousePressEvent(QGraphicsSceneMouseEvent *event);
    //virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
    //virtual void wheelEvent(QGraphicsSceneWheelEvent *event);
	virtual QVariant itemChange ( GraphicsItemChange change, const QVariant & value );


	bool vis;

public:
	Tooltip();
	virtual ~Tooltip();

	void setText(const QString &t);

	//void show();
	//void hide();

	QRectF boundingRect() const;
	void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *);
};

}}}}
#endif